package com.cbg.archives.entity;

import com.shuyuwl.core.domain.AbstractBaseDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 个人档案模块
 *
 * @author wangjuzheng
 * @since 2019-10-16
 */
@Data
@Entity
@Table(name = "es_archives_modular")
@EqualsAndHashCode(callSuper = true)
public class EsArchivesModular extends AbstractBaseDomain implements Serializable {

    /**
     * 档案分类ID
     */
    @Column(name = "archives_id")
    private Long archivesId;

    /**
     * 表ID
     */
    @Column(name = "table_id")
    private Long tableId;

    /**
     * 显示表记录
     */
    @Column(name = "tablename_json")
    private String tablenameJson;

    /**
     * 排序
     */
    @Column(name = "sort")
    private Integer sort;

    /**
     * 显示样式
     */
    @Column(name = "display_style")
    private String displayStyle;

    /**
     * 是否二级搜索
     */
    @Column(name = "is_secondary_search")
    private Integer isSecondarySearch;

    /**
     * 是否调整显示列
     */
    @Column(name = "is_display_column")
    private Integer isDisplayColumn;

    /**
     * 是否分页
     */
    @Column(name = "is_page")
    private Integer isPage;

    /**
     * 每页条数
     */
    @Column(name = "page_number")
    private Long pageNumber;

    /**
     * 模块名称
     */
    @Column(name = "name")
    private String name;
}
